function pe9() {
    var a, b, c, tmp1, tmp2;
    for(var a=1; a<1000; a++) {
        tmp1 = a*a;
        for(var b=a; b<1000; b++) {
            c = 1000 - a - b;
            if(c<b) continue;
            if(c*c == tmp1 + b*b) {
                print("Find....")
                print("a=" + a + ", b=" + b + ", c=" + c);
                return a*b*c; 
            }
        }
    }
}

print(pe9());
